package com.cloudbroker.bsc.common.search.core;

import org.elasticsearch.action.search.SearchType;
import org.elasticsearch.index.query.QueryBuilder;

/**
 * 搜所引擎
 *
 * @create 2016-6-11
 * @author moyin18602
 * @version
 */
public class SearchEngineEntity <T>{
	private String database_name;
	private String[] database_names;
	private String table_name;
	private String[] table_names;
	private String row_id;
	private SearchType searchType;
	private QueryBuilder queryBuilder;
	private QueryBuilder postFilter;
	private Integer start;
	private Integer limit;
	private Boolean isExplain;
	private String[] highLightField;
	private String field_sort;
	private String sort_order;
	private T obj;

	public String getDatabase_name() {
		return database_name;
	}

	public void setDatabase_name(String database_name) {
		this.database_name = database_name;
	}

	public String[] getDatabase_names() {
		return database_names;
	}

	public void setDatabase_names(String[] database_names) {
		this.database_names = database_names;
	}

	public String getTable_name() {
		return table_name;
	}

	public void setTable_name(String table_name) {
		this.table_name = table_name;
	}

	public String[] getTable_names() {
		return table_names;
	}

	public void setTable_names(String[] table_names) {
		this.table_names = table_names;
	}

	public String getRow_id() {
		return row_id;
	}

	public void setRow_id(String row_id) {
		this.row_id = row_id;
	}

	public SearchType getSearchType() {
		return searchType;
	}

	public void setSearchType(SearchType searchType) {
		this.searchType = searchType;
	}

	public QueryBuilder getQueryBuilder() {
		return queryBuilder;
	}

	public void setQueryBuilder(QueryBuilder queryBuilder) {
		this.queryBuilder = queryBuilder;
	}

	public QueryBuilder getPostFilter() {
		return postFilter;
	}

	public void setPostFilter(QueryBuilder postFilter) {
		this.postFilter = postFilter;
	}

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public Boolean getExplain() {
		return isExplain;
	}

	public void setExplain(Boolean explain) {
		isExplain = explain;
	}

	public String[] getHighLightField() {
		return highLightField;
	}

	public void setHighLightField(String[] highLightField) {
		this.highLightField = highLightField;
	}

	public String getField_sort() {
		return field_sort;
	}

	public void setField_sort(String field_sort) {
		this.field_sort = field_sort;
	}

	public String getSort_order() {
		return sort_order;
	}

	public void setSort_order(String sort_order) {
		this.sort_order = sort_order;
	}

	public T getObj() {
		return obj;
	}

	public void setObj(T obj) {
		this.obj = obj;
	}

	public Boolean getIsExplain() {
		return isExplain;
	}

	public void setIsExplain(Boolean isExplain) {
		this.isExplain = isExplain;
	}
	
}
